package entity;

import com.example.a517.R;

import java.util.ArrayList;
import java.util.List;

public class Anim {
    public static int[] pics = {R.mipmap.aa,R.mipmap.bb,R.mipmap.cc,R.mipmap.da,R.mipmap.dd};
    public static String []descs = {
            "aaaaaaaaaaa",
            "bbbbbbbbbbbbbb",
            "ccccccccccccc",
            "ggggggggggggg",
            "dddddddddddd"
    };
    private String desc;
    private int mPic;

    public Anim(String desc, int mPic) {
        this.desc = desc;
        this.mPic = mPic;
    }

    public static List<Anim> getDefault(){
        List<Anim> list = new ArrayList<>();
        for (int i = 0; i< pics.length; i ++){
            Anim anim  = new Anim();
            anim.setDesc(descs[i]);
            anim.setmPic(pics[i]);
            list.add(anim);
        }
        return list;
    }

    public Anim() {
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getmPic() {
        return mPic;
    }

    public void setmPic(int mPic) {
        this.mPic = mPic;
    }

    @Override
    public String toString() {
        return "Anim{" +
                "desc='" + desc + '\'' +
                ", mPic=" + mPic +
                '}';
    }
}
